Integrand size = 22, antiderivative size = 65 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {i \sec (c+d x)}{3 d (a+i a \tan (c+d x))^2}+\frac {i \sec (c+d x)}{3 d \left (a^2+i a^2 \tan (c+d x)\right )} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {3583, 3569} \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {i \sec (c+d x)}{3 d \left (a^2+i a^2 \tan (c+d x)\right )}+\frac {i \sec (c+d x)}{3 d (a+i a \tan (c+d x))^2} \]
[In]
[Out]
Rule 3569
Rule 3583
Rubi steps \begin{align*} \text {integral}& = \frac {i \sec (c+d x)}{3 d (a+i a \tan (c+d x))^2}+\frac {\int \frac {\sec (c+d x)}{a+i a \tan (c+d x)} \, dx}{3 a} \\ & = \frac {i \sec (c+d x)}{3 d (a+i a \tan (c+d x))^2}+\frac {i \sec (c+d x)}{3 d \left (a^2+i a^2 \tan (c+d x)\right )} \\ \end{align*}
Time = 0.25 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.58 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {\sec (c+d x) (-2 i+\tan (c+d x))}{3 a^2 d (-i+\tan (c+d x))^2} \]
[In]
[Out]
Time = 1.07 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.58
method | result | size |
risch | \(\frac {i {\mathrm e}^{-i \left (d x +c \right )}}{2 a^{2} d}+\frac {i {\mathrm e}^{-3 i \left (d x +c \right )}}{6 a^{2} d}\) | \(38\) |
derivativedivides | \(\frac {\frac {2 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {2}{-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {4}{3 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}}{a^{2} d}\) | \(57\) |
default | \(\frac {\frac {2 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {2}{-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {4}{3 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}}{a^{2} d}\) | \(57\) |
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.46 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {{\left (3 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )} e^{\left (-3 i \, d x - 3 i \, c\right )}}{6 \, a^{2} d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 112 vs. \(2 (51) = 102\).
Time = 0.54 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.72 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\begin {cases} \frac {\tan {\left (c + d x \right )} \sec {\left (c + d x \right )}}{3 a^{2} d \tan ^{2}{\left (c + d x \right )} - 6 i a^{2} d \tan {\left (c + d x \right )} - 3 a^{2} d} - \frac {2 i \sec {\left (c + d x \right )}}{3 a^{2} d \tan ^{2}{\left (c + d x \right )} - 6 i a^{2} d \tan {\left (c + d x \right )} - 3 a^{2} d} & \text {for}\: d \neq 0 \\\frac {x \sec {\left (c \right )}}{\left (i a \tan {\left (c \right )} + a\right )^{2}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.41 (sec) , antiderivative size = 45, normalized size of antiderivative = 0.69 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {i \, \cos \left (3 \, d x + 3 \, c\right ) + 3 i \, \cos \left (d x + c\right ) + \sin \left (3 \, d x + 3 \, c\right ) + 3 \, \sin \left (d x + c\right )}{6 \, a^{2} d} \]
[In]
[Out]
none
Time = 0.40 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.72 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2\right )}}{3 \, a^{2} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{3}} \]
[In]
[Out]
Time = 3.91 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.22 \[ \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^2} \, dx=-\frac {2\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,3{}\mathrm {i}+3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-2{}\mathrm {i}\right )}{3\,a^2\,d\,\left (-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,1{}\mathrm {i}-3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,3{}\mathrm {i}+1\right )} \]
[In]
[Out]